package com.h2cloud.applicationEvent;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author: wulongkai
 * @create: 2022-10-14 10:39
 **/
@Configuration
@ComponentScan
public class AppConfig {

    @Bean(name = "myPublisher")
    public MyPublisher myPublisher() {
        return new MyPublisher();
    }
}
